<section class="main">
    <div id="divMain">
        <div class="divHeader2" style="padding-left: 38px; background: transparent url('/resources/system/image/common/category_32.png') no-repeat scroll 3px 9px / 32px auto;">分类编辑</div>
        <div class="SubMenu"></div>
        <div class="edit category_edit" id="divMain2">
            <form action="/system/management/category-edit.html" method="post" name="edit" id="edit">
                <input type="hidden" value="$!model.id" name="id" id="edtID">
                <p>
				<span class="title">名称:</span>
                    <span class="star">(*)</span>
                    <br>
                    <input type="text" value="$!model.name" maxlength="50" name="name" size="40" class="edit" id="edtName"></p>
                <p>
				<span class="title">别名:</span>
                    <br>
                    <input type="text" value="$!model.alias" name="alias" size="40" class="edit" id="edtAlias"></p>
                <p>
				<span class="title">排序:</span>
                    <br>
                    <input type="text" value="$!model.sort" name="sort" size="40" class="edit" id="edtOrder"></p>
                <p>
				<span class="title">父分类:</span>
                    <br>
                    <select size="1" class="edit" name="parent" id="edtParentID">
                        <option value="$!model.parent">$!model.parent</option>
                    </select>
                </p>
                <p>
				<span class="title">模板:</span>
                    <br>
                    <select id="cmbTemplate" name="template" size="1" class="edit">
                        <option selected="selected" value="$!model.template">$!model.template</option>
                    </select>
                </p>
                <p>
				<span class="title">摘要:</span>
                    <br>
                    <textarea style="width:600px;" name="intro" id="edtIntro" rows="6" cols="3">$!model.intro</textarea>
                </p>
                <p>
                    <label>
					<span class="title">加入导航栏菜单:$!model.status</span>
                        <input type="text" class="checkbox" value="0" id="edtAddNavbar" name="AddNavbar"
                               style="display: none;"><span class="imgcheck"></span>
                    </label>
                </p>
                <!-- 1号输出接口 -->
                <div class="editmod2" id="response">
                </div>
                <p>
                    <input type="submit" onclick="return checkInfo();" id="btnPost" value="提交" class="button"></p>
            </form>
            <script type="text/javascript">
                function checkInfo(){
                    if(!$("#edtName").val()){
                        alert("名称不能为空或格式不正确");
                        return false
                    }
                }
            </script>
            <script type="text/javascript">ActiveLeftMenu("aCategoryMng");</script>
            <script type="text/javascript">AddHeaderIcon("/resources/system/image/common/category_32.png");</script>
        </div>
    </div>

</section>